home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / VBASIC / NW41BAS.ZIP / NW4XDEL.BAS < prev    next >
Encoding:
BASIC Source File  |  1995-04-17  |  1.6 KB  |  39 lines

  1. 'NW4XDEL.BAS - Novell Netware 4.X Interface for Visual Basic for Windows
  2. '       Contains function and structure definations for delting Netware
  3. 'files, salvageing deleted files and information on these files.
  4. 'Requirements - NONE
  5.  
  6. type NWDELETED_INFO
  7.   sequence as Long
  8.   parent as Long
  9.   attributes as Long
  10.   uniqueID as Integer
  11.   flags as String * 1
  12.   nameSpace as String * 1
  13.   nameLength as String * 1
  14.   name as String * 256
  15.   creationDateAndTime as Long
  16.   ownerID as Long
  17.   lastArchiveDateAndTime as Long
  18.   lastArchiverID as Long
  19.   updateDateAndTime as Long
  20.   updatorID as Long
  21.   fileSize as Long
  22.   reserved as String * 44
  23.   inheritedRightsMask as Integer
  24.   lastAccessDate as Integer
  25.   deletedTime as Long
  26.   deletedDateAndTime as Long
  27.   deletorID as Long
  28.   reserved3 as String * 16
  29. end Type
  30.  
  31. 'All Path should be init to String * 255
  32. Declare Function NWPurgeDeletedFile Lib "NWCALLS.DLL" (ByVal conn%, ByVal dirHandle%, ByVAL sequence&, ByVAL volume&, ByVal dirBase&, ByVAl fileName$) as Integer
  33. Declare Function NWRecoverDeletedFile Lib "NWCALLS.DLL" (ByVal conn%, ByVAL dirHandle%, ByVAl sequence&, ByVAL volume&, ByVAl dirBase&, ByVAl deletedFileName$, ByVAL recoverFileName$) as Integer
  34.  
  35. Declare Function NWScanForDeletedFiles Lib "NWCALLS.DLL" (ByVal conn%, ByVAl dirHandle%, sequence&, volume&, dirBase&, entryInfo as NWDELETED_INFO) as Integer
  36.  
  37. Declare Function NWPurgeErasedFiles Lib "NWCALLS.DLL" (ByVal conn%) as Integer
  38. Declare Function NWRestoreErasedFile Lib "NWCALLS.DLL" (ByVal conn%, ByVAl dirHandle%, ByVAL dirPath$, ByVAL oldName$, ByVAl newName$) as Integer
  39.